import { request } from './request.js';
//获取耗材列表
export const getDrugsList = (params) => {
  return request({
    url: '/Maintain/SelectDrugs',
    method: 'get',
    params,
  });
};
//新增耗材
export const addDrugs = (data) => {
  return request({
    url: '/Maintain/AddDrugs/btn-drugsadd',
    method: 'post',
    data,
  });
};
//修改耗材
export const editDrugs = (data) => {
  return request({
    url: '/Maintain/UpdateDrugs/btn-drugsupdate',
    method: 'post',
    data,
  });
};
//删除耗材
export const delDrugs = (params) => {
  return request({
    url: '/Maintain/DeleteDrugs/btn-drugsdelete',
    method: 'get',
    params,
  });
};
//批量插入耗材
export const addDrugsList = (params) => {
  return request({
    url: '/Maintain/addDrugsList/btn-drugsload',
    method: 'post',
    data: params,
  });
};
